import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  {path: 'login', loadChildren: 'src/app/login/login.module#LoginModule'},
  {path: 'goods-detail', loadChildren: 'src/app/goods-detail/goods-detail.module#GoodsDetailModule'},
  {path: '', loadChildren: 'src/app/layout/layout.module#LayoutModule'}
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
